package com.lzy.product.apis.impl;

import com.lzy.product.apis.OrderProductImageServiceApi;
import com.lzy.product.dtos.OrderProductImageDto;
import com.lzy.product.service.OrderProductImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2017/12/05.
 */
@Service
public class OrderProductImageServiceApiImpl implements OrderProductImageServiceApi {

    @Autowired
    OrderProductImageService orderProductImageService;

    @Override
    public Long insert(OrderProductImageDto dto) {
        return orderProductImageService.insert(dto);
    }

    @Override
    public Boolean update(OrderProductImageDto dto) {
        return orderProductImageService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return orderProductImageService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return orderProductImageService.remove(id);
    }

    @Override
    public OrderProductImageDto findById(Long id) {
        return orderProductImageService.findById(id);
    }

    @Override
    public List<OrderProductImageDto> query(OrderProductImageDto dto) {
        return orderProductImageService.query(dto);
    }

    @Override
    public List<OrderProductImageDto> findByOrderId(Long orderId) {
        return orderProductImageService.findByOrderId(orderId);
    }
}
